Optimal. Leaf size=253 \[ -\frac{(b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{d x (2 b c-a d)}{b^2}+\frac{d^2 x^5}{5 b} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 0.400891, antiderivative size = 253, normalized size of antiderivative = 1., number of steps used = 11, number of rules used = 7, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.368 \[ -\frac{(b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )}{4 \sqrt{2} a^{3/4} b^{9/4}}-\frac{(b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{(b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{2 \sqrt{2} a^{3/4} b^{9/4}}+\frac{d x (2 b c-a d)}{b^2}+\frac{d^2 x^5}{5 b} \]
Antiderivative was successfully verified.
[In] Int[(c + d*x^4)^2/(a + b*x^4),x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F] time = 0., size = 0, normalized size = 0. \[ \frac{d^{2} x^{5}}{5 b} - \frac{\left (a d - 2 b c\right ) \int d\, dx}{b^{2}} - \frac{\sqrt{2} \left (a d - b c\right )^{2} \log{\left (- \sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x + \sqrt{a} + \sqrt{b} x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{9}{4}}} + \frac{\sqrt{2} \left (a d - b c\right )^{2} \log{\left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x + \sqrt{a} + \sqrt{b} x^{2} \right )}}{8 a^{\frac{3}{4}} b^{\frac{9}{4}}} - \frac{\sqrt{2} \left (a d - b c\right )^{2} \operatorname{atan}{\left (1 - \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{9}{4}}} + \frac{\sqrt{2} \left (a d - b c\right )^{2} \operatorname{atan}{\left (1 + \frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}} \right )}}{4 a^{\frac{3}{4}} b^{\frac{9}{4}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((d*x**4+c)**2/(b*x**4+a),x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 0.172543, size = 231, normalized size = 0.91 \[ \frac{8 a^{3/4} b^{5/4} d^2 x^5-40 a^{3/4} \sqrt [4]{b} d x (a d-2 b c)-5 \sqrt{2} (b c-a d)^2 \log \left (-\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )+5 \sqrt{2} (b c-a d)^2 \log \left (\sqrt{2} \sqrt [4]{a} \sqrt [4]{b} x+\sqrt{a}+\sqrt{b} x^2\right )-10 \sqrt{2} (b c-a d)^2 \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}\right )+10 \sqrt{2} (b c-a d)^2 \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{b} x}{\sqrt [4]{a}}+1\right )}{40 a^{3/4} b^{9/4}} \]
Antiderivative was successfully verified.
[In] Integrate[(c + d*x^4)^2/(a + b*x^4),x]
[Out]
_______________________________________________________________________________________
Maple [B] time = 0.003, size = 436, normalized size = 1.7 \[{\frac{{d}^{2}{x}^{5}}{5\,b}}-{\frac{a{d}^{2}x}{{b}^{2}}}+2\,{\frac{dxc}{b}}+{\frac{a\sqrt{2}{d}^{2}}{4\,{b}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }-{\frac{\sqrt{2}cd}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{\sqrt{2}{c}^{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}-1 \right ) }+{\frac{a\sqrt{2}{d}^{2}}{8\,{b}^{2}}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }-{\frac{\sqrt{2}cd}{4\,b}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{\sqrt{2}{c}^{2}}{8\,a}\sqrt [4]{{\frac{a}{b}}}\ln \left ({1 \left ({x}^{2}+\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) \left ({x}^{2}-\sqrt [4]{{\frac{a}{b}}}x\sqrt{2}+\sqrt{{\frac{a}{b}}} \right ) ^{-1}} \right ) }+{\frac{a\sqrt{2}{d}^{2}}{4\,{b}^{2}}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }-{\frac{\sqrt{2}cd}{2\,b}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) }+{\frac{\sqrt{2}{c}^{2}}{4\,a}\sqrt [4]{{\frac{a}{b}}}\arctan \left ({x\sqrt{2}{\frac{1}{\sqrt [4]{{\frac{a}{b}}}}}}+1 \right ) } \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((d*x^4+c)^2/(b*x^4+a),x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ \text{Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^4 + c)^2/(b*x^4 + a),x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [A] time = 0.243164, size = 1458, normalized size = 5.76 \[ \text{result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^4 + c)^2/(b*x^4 + a),x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [A] time = 3.88518, size = 187, normalized size = 0.74 \[ \operatorname{RootSum}{\left (256 t^{4} a^{3} b^{9} + a^{8} d^{8} - 8 a^{7} b c d^{7} + 28 a^{6} b^{2} c^{2} d^{6} - 56 a^{5} b^{3} c^{3} d^{5} + 70 a^{4} b^{4} c^{4} d^{4} - 56 a^{3} b^{5} c^{5} d^{3} + 28 a^{2} b^{6} c^{6} d^{2} - 8 a b^{7} c^{7} d + b^{8} c^{8}, \left ( t \mapsto t \log{\left (\frac{4 t a b^{2}}{a^{2} d^{2} - 2 a b c d + b^{2} c^{2}} + x \right )} \right )\right )} + \frac{d^{2} x^{5}}{5 b} - \frac{x \left (a d^{2} - 2 b c d\right )}{b^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x**4+c)**2/(b*x**4+a),x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [A] time = 0.218389, size = 477, normalized size = 1.89 \[ \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x + \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (2 \, x - \sqrt{2} \left (\frac{a}{b}\right )^{\frac{1}{4}}\right )}}{2 \, \left (\frac{a}{b}\right )^{\frac{1}{4}}}\right )}{4 \, a b^{3}} + \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )}{\rm ln}\left (x^{2} + \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} - \frac{\sqrt{2}{\left (\left (a b^{3}\right )^{\frac{1}{4}} b^{2} c^{2} - 2 \, \left (a b^{3}\right )^{\frac{1}{4}} a b c d + \left (a b^{3}\right )^{\frac{1}{4}} a^{2} d^{2}\right )}{\rm ln}\left (x^{2} - \sqrt{2} x \left (\frac{a}{b}\right )^{\frac{1}{4}} + \sqrt{\frac{a}{b}}\right )}{8 \, a b^{3}} + \frac{b^{4} d^{2} x^{5} + 10 \, b^{4} c d x - 5 \, a b^{3} d^{2} x}{5 \, b^{5}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((d*x^4 + c)^2/(b*x^4 + a),x, algorithm="giac")
[Out]